﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Sisocana.Core.Interfaces;

namespace Sisocana.Core.Models
{
    public class DireccionModel : IDireccionModel
    {
        public int id { get; set; }

        [DisplayName("Latitude")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string CoordX { get; set; }

        [DisplayName("Longitude")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string CoordY { get; set; }

        [DisplayName("Country")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string Pais { get; set; }

        [DisplayName("Province or state")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string Estado { get; set; }

        [DisplayName("City")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string Ciudad { get; set; }
        
        [DisplayName("Address")]
        [Required(ErrorMessage = "Address")]
        [StringLength(100, MinimumLength = 1, ErrorMessage = "The maximum length is 100")]
        public string Dir { get; set; }

        [DisplayName("Postal or zip code")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string CP { get; set; }
    }
}
